package ${package}.${moduleName}.dao;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "新增${tableComment}")
public class Add${ClassName}Request {

<#list fieldList as field>
    <#if field.attrName != 'id'&& field.attrName != 'createdAt' && field.attrName != 'createdBy' && field.attrName != 'updatedAt' && field.attrName != 'updatedBy'>
        <#if field.fieldComment!?length gt 0>
    @Schema(description = "${field.fieldComment}")
        </#if>
        <#if field.attrType == 'Date'>
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
        </#if>
    private ${field.attrType} ${field.attrName};
    </#if>
</#list>

}